<div id="mainContent">
		<div class="content">
			<?php 	if(isset($params['session_user']) && $params['session_user']->getId()==$params['profil_user']->getId()) {?>
				<h3>MON PROFIL :</h3>
				<div class="profil">
						<a href="index.php?control=user&action=profil"><input type="button" name="modifyProfil" value="Modifier son profil"/></a>
			<?php } else {?>
				<h3>PROFIL DE <?php echo strtoupper($params['profil_user']->getPseudo()); ?>:</h3>
				<div class="profil">
			<?php }?>
				<img src="photos/<?php echo (file_exists("photos/".$params['profil_user']->getId().".jpg")) ? $params['profil_user']->getId().".jpg" : "noimage.png";
							?>" alt="" title="<?php echo $params['profil_user']->getPseudo();?>"/>
				<table>
					<tr>
						<th>Nom : </th>
						<td><?php echo $params['profil_user']->getNom(); ?></td>
					</tr>
					<tr>
						<th>Prénom : </th>
						<td><?php echo $params['profil_user']->getPrenom(); ?></td>
					</tr>
					<tr>
						<th>Pseudo : </th>
						<td><?php echo $params['profil_user']->getPseudo(); ?></td>
					<tr>
						<th>Adresse email : </th>
						<td><?php echo $params['profil_user']->getMailAdress(); ?></td>
					</tr>
					<tr>
						<th>Date de naissance :</th>
						<td><?php echo $params['profil_user']->getBirthDate(); ?></td>
					</tr>
					<tr>
						<th>Ma formation :</th>
						<td><?php echo "Promotion ".$params['profil_user']->getAnnee().
						", option ";
						$formation = $params['profil_user']->getFormation(); 
						echo $formation['LIBFORMATION']; ?></td>
					</tr>
				</table>
			</div>
		</div>
</div>